# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_game=mineclone2
pkgname="minetest-$_game"
pkgver=0.77.0
pkgrel=0
pkgdesc="Voxel-based sandbox game for Minetest"
url="https://git.minetest.land/MineClone2/MineClone2"
# riscv64, loongarch64 blocked by luajit -> minetest
arch="noarch !riscv64 !ppc64le !loongarch64"
license="GPL-3.0-or-later"
depends="minetest-common"
source="$pkgname-$pkgver.tar.gz::https://git.minetest.land/MineClone2/MineClone2/archive/$pkgver.tar.gz"
options="!check"
builddir="$srcdir"

package() {
	mkdir -p "$pkgdir/usr/share/minetest/games"
	mv "$_game" "$pkgdir/usr/share/minetest/games/$_game"
}

sha512sums="
193c6e93c485176d392d60c6f5e8a95cc91742e82dfc96bdaccd8c9c388b8b43fcee978e092779eb88ae90f6d8c641c333c4613fb78a5a284101b408e6308592  minetest-mineclone2-0.77.0.tar.gz
"
